package com.zyz.I_多线程.创建方式.练习.方式一;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description: 龟兔赛跑
 * @version: 1.0
 */

public class Tortoise implements Runnable{

    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        for (int i = 1; i <= 100; i++) {
            System.out.println(name + "跑了" + i + "米");
        }
        System.out.println(name + "到达终点");
    }
}
